from loguru import logger
from datetime import datetime
import os

timestamp = datetime.now().strftime("%m-%d_%H-%M-%S")
path = os.path.join("logs/", f"app_{timestamp}.log")
logger.add(path, 
           format="{time:MM-DD at HH:mm:ss} | {level} | {name} | {function} | {line} - {message}", 
           level="DEBUG",
           rotation="16 MB")